const fs = require('fs');
const pkg = require('./package.json');

const version = pkg.version;
const appName = '优淘V$version-淘宝直播场控（全网独家首发）淘宝直播营销必备工具、助力主播上推荐、软件招收实力代理';
pkg.build.productName =  appName.replace('$version',version);
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));